package com.swjd.service.impl;

import com.swjd.dao.GoodsMapper;
import com.swjd.dao.TypeMapper;
import com.swjd.pojo.Goods;
import com.swjd.pojo.Type;
import com.swjd.service.GoodsService;
import com.swjd.service.TypeService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class TypeServiceImpl implements TypeService {

    @Autowired
    private TypeMapper typeMapper;

    //查询所有类型(一对多)
    @Override
    public List<Type> selectAllOne(String tName) {
        return typeMapper.selectAllOne(tName);
    }

    //查询所有类型(多对一)
    @Override
    public List<Type> selectAllDuo(String tName) {
        return typeMapper.selectAllDuo(tName);
    }

}
